<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="common::header('用户注册-'+${name},'用户注册-'+${name},${description})">
</head>
<body>
<div class="main">
    <div th:replace="common::contentHeader(${name})"></div>
    <div th:replace="common::contentNav"></div>
    <div class="mytop">
        <div class="register">
            <form id="register-form" action="/register/process" th:action="@{/regedit}" th:object="${regeditForm}" method="post" role="form">
            <table class="grid" width="500" align="center" cellspacing="0">
	            <p class="userinfo">新用户注册</p>
	            <p th:if="${error}" th:text="${error}">No error</p>
	            <tr>
	               <td class="odd" width="25%">用户名<span class="hottext">(必填)</span></td>
	               <td class="even">
	                   <input type="text" class="text" name="loginId" id="loginId" th:field="*{loginId}" size="25" maxlength="30" style="width:160px" value="" /> 
	                   <span th:if="${#fields.hasErrors('loginId')}" th:errors="*{loginId}">loginId Error</span>
	               </td>
	            </tr>
	            <tr>
	               <td class="odd" width="25%">密码<span class="hottext">(必填)</span></td>
	               <td class="even"><input type="password" class="text" name="password" id="password" th:field="*{password}" size="25" maxlength="20" style="width:160px" value="" /> 
	               <span id="passmsg" th:if="${#fields.hasErrors('password')}" th:errors="*{password}">password Error</span></td>
	            </tr>
	            <tr>
	               <td class="odd" width="25%">重复密码<span class="hottext">(必填)</span></td>
	               <td class="even"><input type="password" class="text" name="repassword" id="repassword" th:field="*{repassword}" size="25" maxlength="20" style="width:160px" value=""  /> <span id="repassmsg" th:if="${#fields.hasErrors('repassword')}" th:errors="*{repassword}">repassword Error</span></td>
	            </tr>
	            <tr>
	               <td class="odd" width="25%">Email<span class="hottext">(必填)</span></td>
	               <td class="even"><input type="text" class="text" name="email" id="email"  th:field="*{email}" size="25" maxlength="60" style="width:160px" value="" /> <span id="mailmsg"  th:if="${#fields.hasErrors('email')}" th:errors="*{email}">mail Error</span><input type="checkbox" class="checkbox" name="viewemail" value="1" />公开邮箱</td>
	            </tr>
	            <tr>
	              <td class="odd" width="25%">性别</td>
	              <td class="even"><input type="radio" class="radio" name="sex" value="1"   th:field="*{sex}"/>男
	                   <input type="radio" class="radio" name="sex" value="2" th:field="*{sex}"/>女
	                   <input type="radio" class="radio" name="sex" value="0" checked="checked" th:field="*{sex}"/>保密</td>
	            </tr>
	            <tr>
	               <td class="odd" width="25%">QQ</td>
	               <td class="even"><input type="text" class="text" name="qq" id="qq" size="25" maxlength="15" style="width:160px" value="" th:field="*{qq}" /></td>
	            </tr>
	            <tr>
                   <td class="odd" width="25%">手机号</td>
                   <td class="even"><input type="text" class="text" name="mobileNo" id="mobileNo" size="25" maxlength="15" style="width:160px" value="" th:field="*{mobileNo}" /></td>
                </tr>
	            <tr>
	               <td class="odd" width="25%">&nbsp;</td>
	               <td class="even"><input type="submit" class="button" name="submit"  id="submit" value="提 交" /></td>
	            </tr>
            </table>
            </form>
        </div>
    </div>
    <div th:replace="common::footer(${copyright},${support})" ></div>
</div>
</body>
</html>
